<?php
/**
 * Created by PhpStorm.
 * User: huangbin
 * Date: 2018/9/26
 * Time: 下午2:33
 */

/**
 * 公共类
 * Class Common
 */
class Common
{
    //获取订单列表(旧约回收)
    function get_JYHSB_Orders($param) {
        if (is_array($param)) {
            $url = 'http://api.jyhs.ls293.cn/order/Order/getOrderList/';
            if (!empty($param['Biz_ID'])) {
                $url .= 'Biz_ID/' . $param['Biz_ID'];
            }
            if (!empty($param['User_ID'])) {
                $url .= 'User_ID/' . $param['User_ID'];
            }
            if (!empty($param['Reclaim_User_ID'])) {
                $url .= 'Reclaim_User_ID/' . $param['Reclaim_User_ID'];
            }
            if (!empty($param['Order_Status'])) {
                $url .= 'Order_Status/' . $param['Order_Status'];
            }
            $json = file_get_contents($url);
            $arr = json_decode($json, true);
            return $arr['code'] == 0 ? $arr['data'] : '';
        }
        return '';
    }

}